<?php

namespace App\Http\Controllers\Api\V1;

use App\Models\Category;
use App\Http\Controllers\Api\V1\Resources\CategoryResource;

class CategoriesController extends Controller
{
    public function index()
    {
    	return CategoryResource::collection(Category::show()->orderBy('order')->get());
    }
}
